

 let bottles=require("../main/main.js");
describe("99 bottles",function(){
    it("returns string with number given number is 0",function(){
        let number = 0;
        let result = bottles(number);
        expect(result).toEqual(
            "No more bottles of beer on the wall, no more bottles of beer.\n"
          + "Go to the store and buy some more, 99 bottles of beer on the wall.");
    });

     
    it("returns string with number given number is 1",function(){
        let number = 1;
        let result = bottles(number);
        expect(result).toEqual("1 bottle of beer on the wall, 1 bottle of beer.\n"
       + "Take one down and pass it around, no more bottles of beer on the wall.\n"
       + "No more bottles of beer on the wall, no more bottles of beer.\n"
       + "Go to the store and buy some more, 99 bottles of beer on the wall.");

    });

    it("returns string with number given number from 2 to 99",function(){
        let number=2;
        let result = bottles(number);
        expect(result).toEqual("2 bottles of beer on the wall, 2 bottles of beer.\n"
       + "Take one down and pass it around, 1 bottle of beer on the wall.\n"
       + "1 bottle of beer on the wall, 1 bottle of beer.\n"
       + "Take one down and pass it around, no more bottles of beer on the wall.\n"
       + "No more bottles of beer on the wall, no more bottles of beer.\n"
       + "Go to the store and buy some more, 99 bottles of beer on the wall.");

    });



});


